//
// ***********************************************
// *    ___________   ___________  __      __    *
// *   |______  __/  /_____  ___/  \ \    / /    *
// *         / /          / /       \ \  / /     *
// *        / /          / /         \ \/ /      *
// *       / /          / /           \  /       *
// *      / /______    / /            / /        *
// *     /________/   /_/            /_/         *
// *                                             *
// ***********************************************
//
//   ZTYTools.h
//   VolumerSDK
//   
//   Created  by mac on 2019/6/28
//   Modified by Tiyon
//   Copyright © 2019 wanmeizty. All rights reserved.
//   
   

#import <Foundation/Foundation.h>
#import "DTSDKWebView.h"
NS_ASSUME_NONNULL_BEGIN

@interface ZTYTools : NSObject
@property (strong,nonatomic) DTSDKWebView * webview;
@property (copy,nonatomic) NSString * clientId;
@property (copy,nonatomic) NSString * clientSecret;
@property (copy,nonatomic) NSString * uid;
@property (copy,nonatomic) NSString * baseUrl;
@property (assign,nonatomic) BOOL isRelease;
@property (assign,nonatomic) NSInteger sdkVersion;
@property (copy,nonatomic) NSDictionary * scookie;

// 生成唯一标识
+(NSString*)getDeviceId;

+(NSString *)getPhoneInfoString;

+(NSString *)getDeviceImei;

+ (instancetype)sharedTools;

+(NSString *)md5:(nullable NSString *)str;


+(NSDictionary *)convertDicFromString:(NSString *)url;

// 网络请求
+(void)askNetWork:(NSString *)url param:(NSDictionary * )params postMethed:(BOOL )isPost hasCookie:(BOOL)hasCookie finishBlock:(void(^)(NSData * data,NSError * error))finishBlock;


//****toast****//
+ (void)showMessage:(NSString *)message;
@end

NS_ASSUME_NONNULL_END
